home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DTP / DTP_TEX / H219.ZIP / DVIPS551.ZIP / emtex / doc / dvips.doc < prev    next >
Text File  |  1993-08-05  |  17KB  |  396 lines

  1.  
  2.  
  3.  
  4.    13 February 1992                                                  DVIPS(1)
  5.  
  6.  
  7.  
  8.    NAME
  9.      dvips - convert a TeX DVI file to PostScript
  10.  
  11.    SYNOPSIS
  12.      dvips [ _o_p_t_i_o_n_s ] _f_i_l_e[.dvi]
  13.  
  14.    DESCRIPTION
  15.      The program dvips takes a DVI file _f_i_l_e[.dvi] produced by TeX (or by
  16.      some other processor such as GFtoDVI) and converts it to PostScript,
  17.      normally sending the result directly to the laserprinter.  The DVI file
  18.      may be specified without the ._d_v_i extension.  Fonts used may either be
  19.      resident in the printer or defined as bitmaps in PK files, or a `vir-
  20.      tual' combination of both.  If the MakeTeXPK program is installed, dvips
  21.      will automatically invoke METAFONT to generate fonts that don't already
  22.      exist.
  23.  
  24.      For more information, see the manual _d_v_i_p_s._t_e_x in the TEXINPUTS direc-
  25.      tory. The manual can be printed with the following commands:
  26.  
  27.  
  28.           tex dvips
  29.           dvips dvips -o dvips.ps
  30.           lpr dvips.ps
  31.  
  32.    OPTIONS
  33.  
  34.      -a   Conserve memory by making three passes over the .dvi file instead
  35.           of two and only loading those characters actually used.  Generally
  36.           only useful on machines with a very limited amount of memory, like
  37.           some PCs.
  38.  
  39.      -A   Print only odd pages (TeX pages, not sequence pages).
  40.  
  41.      -b num
  42.           Generate _n_u_m copies of each page, but duplicating the page body
  43.           rather than using the #_n_u_m_c_o_p_i_e_s option.  This can be useful in
  44.           conjunction with a header file setting _c_h_a_r_9_2_b_o_p-_h_o_o_k to do color
  45.           separations or other neat tricks.
  46.  
  47.      -B   Print only even pages (TeX pages, not sequence pages).
  48.  
  49.      -c num
  50.           Generate _n_u_m copies of every page.  Default is 1.  (For collated
  51.           copies, see the -_C option below.)
  52.  
  53.      -C num
  54.           Create _n_u_m copies, but collated (by replicating the data in the
  55.           PostScript file).  Slower than the -_c option, but easier on the
  56.           hands, and faster than resubmitting the same PostScript file multi-
  57.           ple times.
  58.  
  59.      -d num
  60.           Set the debug flags.  This is intended only for emergencies or for
  61.  
  62.  
  63.    TeXware                                                                  1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.    DVIPS(1)                                                  13 February 1992
  71.  
  72.  
  73.           unusual fact-finding expeditions; it will work only if _d_v_i_p_s has
  74.           been compiled with the DEBUG option.  For more information on pos-
  75.           sible values see section 15 of _d_v_i_p_s._t_e_x.
  76.  
  77.      -D num
  78.           Set the resolution in dpi (dots per inch) to _n_u_m. This affects the
  79.           choice of bitmap fonts that are loaded and also the positioning of
  80.           letters in resident PostScript fonts. Must be between 10 and 10000.
  81.           This affects both the horizontal and vertical resolution.  If a
  82.           high resolution (something greater than 400 dpi, say) is selected,
  83.           the -_Z flag should probably also be used.
  84.  
  85.      -e num
  86.           Make sure that each character is placed at most this many pixels
  87.           from its `true' resolution-independent position on the page. The
  88.           default value of this parameter is resolution dependent.  Allowing
  89.           individual characters to `drift' from their correctly rounded posi-
  90.           tions by a few pixels, while regaining the true position at the
  91.           beginning of each new word, improves the spacing of letters in
  92.           words.
  93.  
  94.      -E   makes _d_v_i_p_s attempt to generate an EPSF file with a tight bounding
  95.           box.  This only works on one-page files, and it only looks at marks
  96.           made by characters and rules, not by any included graphics.  In
  97.           addition, it gets the glyph metrics from the _t_f_m file, so charac-
  98.           ters that lie outside their enclosing _t_f_m box may confuse it.  In
  99.           addition, the bounding box might be a bit too loose if the charac-
  100.           ter glyph has significant left or right side bearings.  Nonethe-
  101.           less, this option works well for creating small EPSF files for
  102.           equations or tables or the like.  (Note, of course, that _d_v_i_p_s out-
  103.           put is resolution dependent and thus does not make very good EPSF
  104.           files, especially if the images are to be scaled; use these EPSF
  105.           files with a great deal of care.)
  106.  
  107.      -f   Read the ._d_v_i file from standard input and write the PostScript to
  108.           standard output.  The standard input must be seekable, so it cannot
  109.           be a pipe.  If you must use a pipe, write a shell script that
  110.           copies the pipe output to a temporary file and then points _d_v_i_p_s at
  111.           this file.  This option also disables the automatic reading of the
  112.           _P_R_I_N_T_E_R environment variable, and turns off the automatic sending
  113.           of control D if it was turned on with the -_F option or in the con-
  114.           figuration file; use -_F after this option if you want both.
  115.  
  116.      -F   Causes Control-D (ASCII code 4) to be appended as the very last
  117.           character of the PostScript file.  This is useful when _d_v_i_p_s is
  118.           driving the printer directly instead of working through a spooler,
  119.           as is common on extremely small systems.  NOTE! DO NOT USE THIS
  120.           OPTION!
  121.  
  122.      -h name
  123.           Prepend file _n_a_m_e as an additional header file. (However, if the
  124.           name is simply `-' suppress all header files from the output.)
  125.           This header file gets added to the PostScript _u_s_e_r_d_i_c_t.
  126.  
  127.  
  128.  
  129.    2                                                                  TeXware
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.    13 February 1992                                                  DVIPS(1)
  137.  
  138.  
  139.      -i   Make each section be a separate file.  Under certain circumstances,
  140.           _d_v_i_p_s will split the document up into `sections' to be processed
  141.           independently; this is most often done for memory reasons.  Using
  142.           this option tells _d_v_i_p_s to place each section into a separate file;
  143.           the new file names are created replacing the suffix of the supplied
  144.           output file name by a three-digit sequence number.  This option is
  145.           most often used in conjunction with the -_S option which sets the
  146.           maximum section length in pages.  For instance, some photo-
  147.           typesetters cannot print more than ten or so consecutive pages
  148.           before running out of steam; these options can be used to automati-
  149.           cally split a book into ten-page sections, each to its own file.
  150.  
  151.      -k   Print crop marks.  This option increases the paper size (which
  152.           should be specified, either with a paper size special or with the
  153.           -_T option) by a half inch in each dimension.  It translates each
  154.           page by a quarter inch and draws cross-style crop marks.  It is
  155.           mostly useful with typesetters that can set the page size automati-
  156.           cally.
  157.  
  158.      -K   This option causes comments in included PostScript graphics, font
  159.           files, and headers to be removed.  This is sometimes necessary to
  160.           get around bugs in spoolers or PostScript post-processing programs.
  161.           Specifically, the %%Page comments,  when left in, often cause dif-
  162.           ficulties.  Use of this flag can cause some included graphics to
  163.           fail, since the PostScript header macros from some software pack-
  164.           ages read portions of the input stream line by line, searching for
  165.           a particular comment.  This option has been turned off by default
  166.           because PostScript previewers and spoolers have been getting
  167.           better.
  168.  
  169.      -l num
  170.           The last page printed will be the first one numbered _n_u_m Default is
  171.           the last page in the document.  If the _n_u_m is prefixed by an equals
  172.           sign, then it (and any argument to the -_p option) is treated as a
  173.           sequence number, rather than a value to compare with _c_h_a_r_9_2 _c_o_u_n_t_0
  174.           values.  Thus, using -_l =_9 will end with the ninth page of the
  175.           document, no matter what the pages are actually numbered.
  176.  
  177.      -m   Specify manual feed for printer.
  178.  
  179.      -M   Turns off the automatic font generation facility.  If any fonts are
  180.           missing, commands to generate the fonts are appended to the file
  181.           _m_i_s_s_f_o_n_t._l_o_g in the current directory; this file can then be exe-
  182.           cuted and deleted to create the missing fonts.
  183.  
  184.      -n num
  185.           At most _n_u_m pages will be printed. Default is 100000.
  186.  
  187.      -N   Turns off structured comments; this might be necessary on some sys-
  188.           tems that try to interpret PostScript comments in weird ways, or on
  189.           some PostScript printers.  Old versions of TranScript in particular
  190.           cannot handle modern Encapsulated PostScript.
  191.  
  192.      -o name
  193.  
  194.  
  195.    TeXware                                                                  3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.    DVIPS(1)                                                  13 February 1992
  203.  
  204.  
  205.           The output will be sent to file _n_a_m_e If no file name is given, the
  206.           default name is _f_i_l_e._p_s where the .dvi file was called _f_i_l_e._d_v_i; if
  207.           this option isn't given, any default in the configuration file is
  208.           used.  If the first character of the supplied output file name is
  209.           an exclamation mark, then the remainder will be used as an argument
  210.           to _p_o_p_e_n; thus, specifying !_l_p_r as the output file will automati-
  211.           cally queue the file for printing.  This option also disables the
  212.           automatic reading of the _P_R_I_N_T_E_R environment variable, and turns
  213.           off the automatic sending of control D if it was turned on with the
  214.           -_F option or in the configuration file; use -_F after this option if
  215.           you want both.
  216.  
  217.      -O offset
  218.           Move the origin by a certain amount.  The _o_f_f_s_e_t is a comma-
  219.           separated pair of dimensions, such as ._1_i_n,-._3_c_m (in the same syn-
  220.           tax used in the _p_a_p_e_r_s_i_z_e special).  The origin of the page is
  221.           shifted from the default position (of one inch down, one inch to
  222.           the right from the upper left corner of the paper) by this amount.
  223.  
  224.      -p num
  225.           The first page printed will be the first one numbered _n_u_m. Default
  226.           is the first page in the document.  If the _n_u_m is prefixed by an
  227.           equals sign, then it (and any argument to the -_l option) is treated
  228.           as a sequence number, rather than a value to compare with _c_h_a_r_9_2
  229.           _c_o_u_n_t_0 values.  Thus, using -_p =_3 will start with the third page of
  230.           the document, no matter what the pages are actually numbered.
  231.  
  232.      -pp pagelist
  233.           A comma-separated list of pages and ranges (a-b) may be given,
  234.           which will be interpreted as _c_h_a_r_9_2 _c_o_u_n_t_0 values.  Pages not
  235.           specified will not be printed.  Multiple -pp options may be speci-
  236.           fied or all pages and page ranges can be specified with one -pp
  237.           option.
  238.  
  239.      -P printername
  240.           Sets up the output for the appropriate printer.  This is imple-
  241.           mented by reading in _c_o_n_f_i_g._p_r_i_n_t_e_r_n_a_m_e , which can then set the
  242.           output pipe (as in, !_l_p_r -_P_p_r_i_n_t_e_r_n_a_m_e as well as the font paths
  243.           and any other _c_o_n_f_i_g._p_s defaults for that printer only.  Note that
  244.           _c_o_n_f_i_g._p_s is read before _c_o_n_f_i_g._p_r_i_n_t_e_r_n_a_m_e In addition, another
  245.           file called ~/._d_v_i_p_s_r_c is searched for immediately after _c_o_n_f_i_g._p_s;
  246.           this file is intended for user defaults.  If no -_P command is
  247.           given, the environment variable _P_R_I_N_T_E_R is checked.  If that vari-
  248.           able exists, and a corresponding configuration file exists, that
  249.           configuration file is read in.
  250.  
  251.      -q   Run in quiet mode.  Don't chatter about pages converted, etc.;
  252.           report nothing but errors to standard error.
  253.  
  254.      -r   Stack pages in reverse order.  Normally, page 1 will be printed
  255.           first.
  256.  
  257.      -s   Causes the entire global output to be enclosed in a save/restore
  258.           pair.  This causes the file to not be truly conformant, and is thus
  259.  
  260.  
  261.    4                                                                  TeXware
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.    13 February 1992                                                  DVIPS(1)
  269.  
  270.  
  271.           not recommended, but is useful if you are driving the printer
  272.           directly and don't care too much about the portability of the out-
  273.           put.
  274.  
  275.      -S num
  276.           Set the maximum number of pages in each `section'.  This option is
  277.           most commonly used with the -_i option; see that documentation above
  278.           for more information.
  279.  
  280.      -t papertype
  281.           This sets the paper type to _p_a_p_e_r_t_y_p_e. The _p_a_p_e_r_t_y_p_e _s_h_o_u_l_d _b_e
  282.           _d_e_f_i_n_e_d _i_n _o_n_e the appropriate code to select it.  (Currently known
  283.           types include _l_e_t_t_e_r, _l_e_g_a_l, _l_e_d_g_e_r, _a_4, _a_3, ) You can also specify
  284.           -_t _l_a_n_d_s_c_a_p_e, which rotates a document by 90 degrees.  To rotate a
  285.           document whose size is not letter, you can use the -_t option twice,
  286.           once for the page size, and once for landscape.  The upper left
  287.           corner of each page in the ._d_v_i file is placed one inch from the
  288.           left and one inch from the top.  Use of this option is highly
  289.           dependent on the configuration file.  Note that executing the
  290.           _l_e_t_t_e_r or _a_4 or other PostScript operators cause the document to be
  291.           nonconforming and can cause it not to print on certain printers, so
  292.           the paper size should not execute such an operator if at all possi-
  293.           ble.
  294.  
  295.      -T offset
  296.           Set the paper size to the given pair of dimensions.  This option
  297.           takes its arguments in the same style as -_O. It overrides any paper
  298.           size special in the dvi file.
  299.  
  300.      -U   Disable a PostScript virtual memory saving optimization that stores
  301.           the character metric information in the same string that is used to
  302.           store the bitmap information.  This is only necessary when driving
  303.           the Xerox 4045 PostScript interpreter.  It is caused by a bug in
  304.           that interpreter that results in `garbage' on the bottom of each
  305.           character.  Not recommended unless you must drive this printer.
  306.  
  307.      -x num
  308.           Set the magnification ratio to _n_u_m /1000. Overrides the magnifica-
  309.           tion specified in the .dvi file.  Must be between 10 and 100000.
  310.  
  311.      -X num
  312.           Set the horizontal resolution in dots per inch to _n_u_m.
  313.  
  314.      -Y num
  315.           Set the vertical resolution in dots per inch to _n_u_m.
  316.  
  317.      -Z   Causes bitmapped fonts to be compressed before they are downloaded,
  318.           thereby reducing the size of the PostScript font-downloading infor-
  319.           mation.  Especially useful at high resolutions or when very large
  320.           fonts are used.  Will slow down printing somewhat, especially on
  321.           early 68000-based PostScript printers.
  322.  
  323.  
  324.  
  325.  
  326.  
  327.    TeXware                                                                  5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.    DVIPS(1)                                                  13 February 1992
  335.  
  336.  
  337.    SEE ALSO
  338.      mf(1), afm2tfm(1), tex(1), latex(1), lpr(1), _d_v_i_p_s._t_e_x.
  339.  
  340.    DIAGNOSTICS
  341.  
  342.    NOTES
  343.      PostScript is a registered trademark of Adobe Systems Incorporated.
  344.  
  345.    AUTHOR
  346.      Tomas Rokicki <rokicki@cs.stanford.edu>; extended to virtual fonts by
  347.      Don Knuth.
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.    6                                                                  TeXware
  394.  
  395.